// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import store from './store'
import MainEdit from './components/MainEdit'
import ElementUI from 'element-ui'
import '../theme/index.css'
// import 'element-ui/lib/theme-default/index.css'
import axios from 'axios'
import Vuex from 'vuex'
import iView from 'iview'
import 'iview/dist/styles/iview.css'; // 使用 CSS

import IScrollView from 'vue-iscroll-view'
import IScroll from 'iscroll'

import infiniteScroll from 'vue-infinite-scroll' //滑动到底部自动刷新
Vue.use(infiniteScroll)

import VueAwesomeSwiper from 'vue-awesome-swiper'
Vue.use(VueAwesomeSwiper)

require('./assets/css/magic.min.css')
require('./assets/css/magic.min1.css')
require('./assets/css/yaoyueElementEffect.v1.css')
require('./assets/css/awesome.min.css')

axios.defaults.withCredentials=true

Vue.prototype.$http = axios
Vue.use(ElementUI)
Vue.use(iView)
Vue.use(Vuex)
Vue.use(IScrollView, IScroll)

Vue.config.productionTip = false
Vue.config.silent = true
/* eslint-disable no-new */
new Vue({
    el: '#mainedit',
    router,
    store,
    template: '<MainEdit/>',
    components: { MainEdit }
})
